package com.weepal.pavement.mqtt.demo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mqttDevices")
public class MqttDevices {
    @Id
    @TableField("kid")
    private String kid;
    @TableField("projId")
    private Integer projId;
    @TableField("pactId")
    private Integer pactId;
    @TableField("pushGateway")
    private String pushGateway;
    @TableField("subGateway")
    private String subGateway;
    @TableField("isDel")
    private Integer isDel;
    @TableField("strongeType")
    private int strongeType;
    @TableField("sourceName")
    private String sourceName;
    @TableField("redisKey")
    private String redisKey;
    @TableField("exchange")
    private String exchange;
    @TableField("routingKey")
    private String routingKey;
    @TableField("databaseFullName")
    private String databaseFullName;
    @TableField("dataType")
    private Integer dataType;
    @TableField("isModbus")
    private Integer isModbus;
    @Transient
    private String data;
    @Transient
    private ConcurrentHashMap<String, DeviceField> fields;
}
